<!-- <div class="row about_us events"> -->
<?php if ($request == 'main_page'):?>
<script>
$(function() {
	$('#events_carousel').tinycarousel();
	
	$("li div.events_content").live('mouseover', function() {
		$(this).prev("div.year").addClass('active');
	});
	$("li div.events_content").live('mouseout', function() {
		$(this).prev("div.year").removeClass('active');
	});

	$().containerSimulator();
});
</script>
	<div class="span12 center-content">
		<div class="inner-content">
			<div id="events_carousel">
				<a class="buttons prev" href="#">&lt;</a>
				<div class="viewport">
					<ul class="overview">
						<?php foreach ($events as $k => $v):?>
						<li>
							<div class="year"><?php echo $k?></div>
							<div class="events_content">
								<?php foreach ($v as $k1 => $v1):?>
								<p id="<?php echo $v1['id']?>">/ <?php echo $v1['name']?></p>
								<?php if ($k1 >= 4) { break; }?>
								<?php endforeach;?>
							</div>
						</li>
						<?php endforeach;?>
					</ul>
				</div>
				<a class="buttons next" href="#">&gt;</a>
			</div>
		</div>
	</div>
<?php elseif ($request == 'sub_page'):?>
<script>
$(function() {
	$('#scrollbar2').tinyscrollbar();

	<?php if ($this->common->_is_admin()):?>
	post_option['year'] = <?php echo $year?>;
	<?php endif;?>
});
</script>
<?php if (isset($nearest['prev'])):?>
<a class="carousel-controller prev" style="cursor: pointer;" id="<?php echo $nearest['prev']?>">&lt;</a>
<?php endif;?>
<?php if (isset($nearest['next'])):?>
<a class="carousel-controller next" style="cursor: pointer;" id="<?php echo $nearest['next']?>">&gt;</a>
<?php endif;?>
	<div class="span12 center-content">
		<div id="year_events_carousel">
			<div id="year"><?php echo $year?></div>
			<div class="span3">
				<div id="gallery">
					<?php if (isset($gallery)):?>
					<?php foreach ($gallery as $k => $v):?>
					<img id="<?php echo $v['id']?>" src="<?php echo $v['photo_path']?>">
					<?php endforeach;?>
					<?php else :?>
					<img src="/images/106x68.gif">
					<?php endif;?>
				</div>
			</div>
			<div class="span5">
				<div id="scrollbar2">
					<div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
					<div class="viewport">
						<div class="overview" id="events_content">
							<?php if ($content):?>
							<?php foreach ($content as $v):?>
							<p id="<?php echo $v['id']?>">/ <?php echo $v['name']?></p>
							<?php endforeach;?>
							<?php endif;?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php endif;?>
<!-- </div> -->